﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Food
{
    public interface IIngredientsAtHome
    {
        void AddIngredientToHome(int useerId, int foodIngredientId, int quantity, ref Model.NutriLeafDBEntities context);

        void RemoveIngredientFromHome(int ingredientAthomeId, ref Model.NutriLeafDBEntities context);

        void RemoveRecentIngredientFromHome(int userId, ref Model.NutriLeafDBEntities context);

        List<Model.IngredientsAtHome> GetAllIngredientAtHome(int userId, ref Model.NutriLeafDBEntities context);

        List<Model.FoodIngredient> GetAllFoodIngredientsAtHome(int userId, ref Model.NutriLeafDBEntities context);

        Model.IngredientsAtHome GetIngredientAtHome(int id, ref Model.NutriLeafDBEntities context);

        void Update(Model.IngredientsAtHome ingredient, ref Model.NutriLeafDBEntities context);
    }
}